Dynomotion

Group: DynoMotion Message: 11327 From: tmday7 Date: 4/9/2015
Subject: Custom Coolant On Off Buttons
After changing my axes incremental step buttons, i broke my Coolant on off buttons. I forgot that i changed the source files a while back when i was working on a different approach of turning coolant on and off.
Now iam trying figure out the coding i had that made the 2 coolant buttons work.But i keep getting 2 errors when rebuilding in VS.

Error    1    error LNK2001: unresolved external symbol "protected: void __thiscall CKMotionCNCDlg::OnCoolant(void)" (?OnCoolant@CKMotionCNCDlg@@IAEXXZ)    KMotionCNCDlg.obj    KMotionCNC

Error    2    fatal error LNK1120: 1 unresolved externals    c:\KMotion432\KMotion\Release\KMotionCNC.exe    KMotionCNC


I still have a KMotionCNC.exe that both Coolant On and Off buttons work. Is there a way to open the source files from this .exe so i can see what i did in the KMotionCNCDlg.cpp file and other files?

Thanks,
Troy



Group: DynoMotion Message: 11328 From: TK Date: 4/9/2015
Subject: Re: Custom Coolant On Off Buttons
Hi Troy,

There isn't any way to get the source code that was used to make an executable back from the executable. 

But this should be easy to fix. Both errors are related to one thing which is you have defined a function called:

OnCoolant

as a function in class CKMotionCNCDlg. But the body of the function doesn't exist.

TK

On Apr 9, 2015, at 8:19 AM, tmday88@... [DynoMotion] <DynoMotion@yahoogroups.com> wrote:

 

After changing my axes incremental step buttons, i broke my Coolant on off buttons. I forgot that i changed the source files a while back when i was working on a different approach of turning coolant on and off.
Now iam trying figure out the coding i had that made the 2 coolant buttons work.But i keep getting 2 errors when rebuilding in VS.

Error    1    error LNK2001: unresolved external symbol "protected: void __thiscall CKMotionCNCDlg::OnCoolant(void)" (?OnCoolant@CKMotionCNCDlg@@IAEXXZ)    KMotionCNCDlg.obj    KMotionCNC

Error    2    fatal error LNK1120: 1 unresolved externals    c:\KMotion432\KMotion\Release\KMotionCNC.exe    KMotionCNC


I still have a KMotionCNC.exe that both Coolant On and Off buttons work. Is there a way to open the source files from this .exe so i can see what i did in the KMotionCNCDlg.cpp file and other files?

Thanks,
Troy



Group: DynoMotion Message: 11330 From: tmday7 Date: 4/9/2015
Subject: Re: Custom Coolant On Off Buttons
Hi Tom,
 I had left the following lines in the Dlg.cpp file
DDX_Check(pDX, IDC_OnCoolant, m_Coolant);
ON_BN_CLICKED(IDC_OnCoolant, OnCoolant)

Thinking they were needed, then after you gave me a hint :) i remebered that code was for the checkbox we was trying to get to toggle the coolant a while back and i never finished it. Needless to say, i have now removed all this code i had commented out. :)

Need to finish my notes for adding these two Coolant Buttons and place it in the files section.

Thanks again,
Troy